<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui"
                template="/WEB-INF/template.xhtml">

    <ui:define name="title">
        ImportConstants
    </ui:define>

    <ui:define name="description">
        In older EL versions (&lt; 3.0), it's not possible to use constants or any other static fields/methods in an EL expression.<br/>
        As it is not really "cool" to create beans with getter/setter for each constants class, we provide an utils tag which allows to import constant fields in a page.<br/>
        <br/>
        The constants can be accessed via the name of the class (default setting) or via a custom name (var attribute). 
    </ui:define>

    <ui:param name="documentationLink" value="/components/importconstants" />

    <ui:define name="implementation">
        <p:importConstants type="org.primefaces.util.Constants" var="PFConstants" /> 
        
        LIBRARY:  
        <h:outputText value="#{PFConstants.LIBRARY}" />
        <br />
        DOWNLOAD_COOKIE:
        <h:outputText value="#{PFConstants.DOWNLOAD_COOKIE}" />
    </ui:define>

</ui:composition>